package com.cloudkinto.dao;

import com.cloudkinto.dto.stock.stock.StockPickDto;
import com.cloudkinto.dto.stock.stock.StockPickListDto;
import com.cloudkinto.entity.StockPickingDo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 * @author hua
 * @since 2024-12-11
 */
public interface StockPickingDao extends BaseMapper<StockPickingDo> {
    List<StockPickDto> getPickDto(Long defectiveId, String orderType);

    List<StockPickListDto> getNoFinishPickList(Long defectiveId, String orderType);

    List<StockPickListDto> getNoOutList(Long defectiveId, String orderType);

    int updateDelete(Long defectiveId, String orderType, Long userId);


    int updateQty(Long id, int qty);

    int updatePutQty(Long id, int qty);

}
